window.onload = function (){
    var bsgl_li = document.getElementsByClassName("bsgl_li");
    var BhSyRight_if = document.getElementById("BhSyRight_if");
    let bsglNum = 1;
    let bsglOcNum = -1;

    let bsglAfter =0;
    for (let i = 0; i < bsgl_li.length ; i++) {
        bsgl_li[i].onmouseover = function (){
            if (bsglOcNum!=i){
                bsgl_li[i].style.backgroundColor="#5F9EA0FF";
                if (bsglNum==1){
                    bsgl_li[0].style.backgroundColor="#7dc9cb";
                }
            }
            bsglNum++;
        }
        bsgl_li[i].onclick = function (){
            bsglOcNum = i;
            bsgl_li[bsglAfter].style.backgroundColor="#7dc9cb";
            bsgl_li[i].style.backgroundColor="#5F9EA0FF";
            bsglAfter=bsglOcNum;
        }
    }
    for (let i = 0; i < bsgl_li.length ; i++) {
        bsgl_li[i].onmouseleave = function (){
            if (bsglOcNum!=i){
                bsgl_li[i].style.backgroundColor="#7dc9cb";
            }
        }
    }
    bsgl_li[0].style.backgroundColor="#5F9EA0FF";
}